<template>
  <div v-if="$store.state.buyTicket.alert" class="prompt-bag cenCen" @click.self="$store.state.buyTicket.alert=false">
    <!-- <transition name="bounce"> -->
    <div v-if="$store.state.buyTicket.alert" class="prompt-box">
      <div class="prompt-title">
        已达限购数
      </div>
      <div class="prompt-con">
        <p>单笔订单超过{{$store.state.buyTicket.limitNum}}张建议通过邮件团购</p>
        <p>{{$store.state.buyTicket.connectEmail}}</p>
      </div>
      <div class="prompt-btn-box">
        <div @click.self="$store.state.buyTicket.alert=false" class="prompt-btn cenCen prompt-btn-sure">
          知道了
        </div>
      </div>
    </div>
    <!-- </transition> -->
  </div>
</template>


<style scoped>
.prompt-bag {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.prompt-box {
  width: 60%;
  max-width: 460px;
  height: auto;
  min-height: 200px;
  background: #e0e0e0;
  border-radius: 14px;
  padding: 16px 30px 120px 30px;
  position: relative;
}
.prompt-title {
  width: 100%;
  height: auto;
  /* font-family: PingFangSC-Semibold; */
  font-size: 28px;
  color: #000000;
  letter-spacing: 0;
  text-align: center;
  margin: 20px 0px;
}
.prompt-con {
  width: 100%;
  height: auto;
  text-align: center;
  margin: 10px 0px;
}
.prompt-con > p {
  /* font-family: PingFangSC-Regular; */
  font-size: 22px;
  color: #373d41;
  letter-spacing: 0;
  text-align: center;
  margin: 3px 0px;
}
.prompt-btn-box {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
  height: 88px;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 80, 0.9);
}
.prompt-btn {
  width: 100%;
  height: 100%;
  float: left;
  /* font-family: PingFangSC-Medium; */
  font-size: 28px;
  color: #007aff;
}

/* 动画 */
/* 
.bounce-enter-active {
  animation: bounce-in 0.4s;
}

.bounce-leave-active {
    animation: bounce-in 0.4s reverse;
  }
@keyframes bounce-in {
  0% {
    transform: scale(0);
  }

  10% {
    transform: scale(0.2);
  }

  20% {
    transform: scale(0.3);
  }

  30% {
    transform: scale(0.4);
  }

  40% {
    transform: scale(0.4);
  }

  50% {
    transform: scale(0.5);
  }

  60% {
    transform: scale(0.6);
  }

  70% {
    transform: scale(0.7);
  }

  80% {
    transform: scale(0.8);
  }

  90% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
} */
</style>

